package com.fowo.api.inventory.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * 出库库存服务实体
 * @author yl_ls
 */
@Getter
@Setter
@Schema(title = "出库库存服务实体")
public class InventoryOutboundVo extends BaseInventoryItemVo {

    @Schema(title = "仓库内码")
    private Long stockId;
    //binIds: Map<库位内码, 入位数量>  可选，表示向指定库位入库
    @Schema(title = " Map<库位内码, 入位数量>  可选，表示向指定库位入库")
    private Map<Long,Integer> binIds;

    @Schema(title = "选择模式\n" +
            "    - LIFO: 后进先出\n" +
            "    - FIFO: 先进先出\n" +
            "    - ExpiryEarlier: 近有效期先出\"不新鲜\"\n" +
            "    - ExpiryLater: 远有效期先出\"新鲜\"")
    private PatternEnum model;

    @Schema(title = "出库源类型\n" +
            "    - Normal : 正常库存\n" +
            "    - Lock: 锁定库存\n" +
            "    - Display: 展示库存\n" +
            "    - Defect: 残次库存\n" +
            "    - Way: 在途库存")
    private TargetTypeEnum from;
    @Schema(title = "库位类型\n" +
            "    - Normal : 正常库存\n" +
            "    - Lock: 锁定库存\n"
    )
    private TargetTypeEnum fromBinIdsType;
}
